﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Text;
using System.Threading.Tasks;

namespace AnimationEditor
{
    class Frames
    {
        int frameNumber;
        public int FrameNumber
        {
            get { return frameNumber; }
            set { frameNumber = value; }
        }
        Point anchorPoint;
        public Point AnchorPoint
        {
            get { return anchorPoint; }
            set { anchorPoint = value; }
        }
        public int APX
        {
            get { return anchorPoint.X; }
            set { anchorPoint.X = value; }
        }
        public int APY
        {
            get { return anchorPoint.Y; }
            set { anchorPoint.Y = value; }
        }
        float duration;
        public float Duration
        {
            get { return duration; }
            set { duration = value; }
        }
        int rectX;
        public int RectX
        {
            get { return rectX; }
            set { rectX = value; }
        }
        int rectY;
        public int RectY
        {
            get { return rectY; }
            set { rectY = value; }
        }
        int rectWidth;
        public int RectWidth
        {
            get { return rectWidth; }
            set { rectWidth = value; }
        }
        int rectHeight;
        public int RectHeight
        {
            get { return rectHeight; }
            set { rectHeight = value; }
        }
        string eventName;
        public string EventName
        {
            get { return eventName; }
            set { eventName = value; }
        }

        public Frames()
        {
        }

        public override string ToString()
        {
                return "Frame #" + (frameNumber + 1).ToString();
        }
    }
}
